package com.itluma.isWOak.pojo;


import lombok.Data;


import java.util.List;

@Data
public class RoleInfo{

    private Integer roleId;
    private String name;
    private List<ModuleInfo> moduleInfos;

    private String moduleName = "";

    public String getAllModuleName(){
        for (ModuleInfo moduleInfo : moduleInfos) {
            moduleName = moduleName.concat (moduleInfo.getName () + "、");
        }
        return moduleName;
    }

}
